<html lang="en" style="">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width">
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <link rel="stylesheet" href="{{URL::asset('js/modalPlugin/icon/iconfont.css')}} ">
    <link rel="stylesheet" href="{{URL::asset('js/modalPlugin/modal.css')}}">
    <title></title>
    <style type="text/css">
        *{ padding: 0;margin: 0 }
        @keyframes tipMove {
            0% { transform: translate(0px, 0%); }
            40% { transform: translate(-10px, 30%); }
            100% { transform: translate(0px, 0%); }
        }
        @keyframes rotateMove {
            from { transform: rotate(0deg) }
            to { transform: rotate(360deg) }
        }
        @keyframes itemMove {
            0% { height: 0px; transform: translateX(-100px); opacity: 0; }
            40% { height: 60px; transform: translateX(-100px); opacity: 0; }
            100% { transform: translateX(0px); opacity: 1; }
        }
        @keyframes alertMove {
            from { transform: translateY(-100px); opacity: 0; }
            to { transform: translateY(0px); opacity: 1; }
        }
        @keyframes btnMove {
            0%{ transform: rotate(0deg); }
            10%{ transform: rotate(25deg); }
            20%{ transform: rotate(-25deg); }
            30%{ transform: rotate(25deg); }
            38%{ transform: rotate(-25deg); }
            46%{ transform: rotate(0deg); }
        }
        .doCustom{
            /*background-color: red;*/
        }
        #js_mod_dialog{
            text-align: center;
            margin-top: -20px;
            /*position: relative;*/
        }
        .popup-btn{
            border: 1px solid #bbb;
            padding: 15px;
            font-size: 18px;
            margin-top: 20px;
            font-weight: 900;
            color: #009688;
            box-shadow: 1px 1px 1px #bbb;
            border-radius: 5px;
            position: relative;
            top: 30px;
        }
    </style>

</head>
<body>
<div style="position: fixed; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; background-color: #fff; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;" data-page="">
    <div style="background-image: url();background-size: cover; background-repeat: no-repeat; height: 300px; border: 1px solid rgb(215, 94, 77); background-color: rgb(215, 94, 77); border-radius: 0px 0px 50% 50% / 10px 10px 19% 19%; margin-bottom: 20px ">
        <img src="{{$entrance['title_img']}}" style="width: 60px; height: 60px;margin: 0 auto 0; display: block; margin-top: 40px; object-fit: cover;border-radius: 10px;">
        <p style="font-size: 18px; color: rgb(246, 205, 155); text-align: center;padding-top: 10px">祝工作順利 財源廣進</p>
        <div style="display: flex; flex-wrap: wrap; justify-content: center; font-size: 40px; padding-top: 8px; color: rgb(246, 205, 155); font-weight: bold; position: relative; z-index: 2;">￥<span style="margin-right: 4px;"></span><span data-time="">{{$reward}}</span></div>
        <div id="squn" style="display:block; text-align: center; font-size: 15px; color: rgb(246, 205, 155); margin-bottom: 10px;">转发到微信群，自动存入零钱</div>
        <div id="squan" style="display:none; text-align: center; font-size: 15px; color: rgb(246, 205, 155); margin-bottom: 10px;">转发到朋友圈，自动存入零钱</div>
        <input type="hidden" value="&nbsp;" id="nulltext">
        <div style="margin: 0 auto; width: 106px; height: 40px; border-radius: 20px; background-color: rgb(246, 205, 155); color: rgb(215, 94, 77); text-align: center; line-height: 40px; font-size: 16px; font-weight: bold; box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 0px 0;" data-open="">确定</div>
    </div>
    <div style="width: 100%; height: 10px; background-color: #eceeed;"></div>
    <div id="sk0fhtosd69" style="font-size: 14px; color:#929493; height: 30px; line-height: 30px; padding-left: 10px; border-bottom: solid 1px rgba(0,0,0,0.05)">总计￥10000000.00 剩余￥2379371.16元</div>
    <!--
    <div style="position: fixed; z-index: 9999; top: 10px; left: -15px; width: 80px; height: 40px; line-height: 40px; border-radius: 0 20px 20px 0; background-color: rgba(255,255,255,0.8); text-align: center">
        <a href="" style="font-size: 14px; color: #333; text-decoration: none; line-height: 40px; display: inline;">举报</a>
    </div>-->
    <div id="userReword" style="width: 100%; background-color: rgba(255, 255, 255, 0.1); overflow: hidden; border-radius: 5px; height: 600px;"><div style="width: 100%; height: 60px; overflow: hidden; box-sizing: border-box; padding: 0px 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; animation: 0.5s ease 0s 1 normal none running itemMove;"><img style="width: 40px; height: 40px; margin-right: 10px; overflow: hidden; background-color: #eee; border-radius: 49%" src="https://q.qlogo.cn/qqapp/1104718115/25217BFE51A1B8A16160A9F43837A86F/100">
            <div style="flex: 1;">
                <div style="font-size: 15px; color: #000; margin-bottom: 4px;">F.I.R</div>
                <div style="font-size: 14px; color: #929493;">{{$showTime}}</div>
            </div>
            <div style="text-align: right;">
                <svg t="1566461623474" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2574" width="16" height="16">
                    <path d="M928.6 208c-27 1.4-51.8 18.6-62.7 43.4-12.1 27.7-6.2 56 10 76.3l-7.7 32.3c-15.7 66-74.6 112.5-142.5 112.5-76.4 0-139.9-58.7-146-134.8l-7.3-91.4c35.2-23.4 56-66.8 45.9-114-8.7-40.5-41.5-73.2-82.1-81.7C466.5 35.9 405 88.9 405 156.2c0 37.6 19.3 70.8 48.5 90.1l-7.3 91.4c-6.1 76.1-69.6 134.8-146 134.8-67.8 0-126.8-46.6-142.5-112.5l-7.7-32.3c16.2-20.2 22.1-48.6 10-76.3-10.8-24.8-35.6-42.1-62.7-43.4-49.4-2.5-85.3 40.7-77.4 86.3 4.4 25.2 21.1 45.2 42.8 54.8l65.6 463.5h769v-0.2l65.6-463.3c21.8-9.6 38.5-29.6 42.8-54.8 8.2-45.6-27.7-88.8-77.1-86.3z" fill="#F9C85D" p-id="2575"></path>
                    <path d="M781.3 961.3h-541c-63 0-114-51-114-114h769c0 63-51.1 114-114 114z" fill="#83C6EF" p-id="2576"></path>
                    <path d="M93 281.4m-73.9 0a73.9 73.9 0 1 0 147.8 0 73.9 73.9 0 1 0-147.8 0Z" fill="#F9C85D" p-id="2577"></path>
                    <path d="M928.6 208c-27 1.4-51.8 18.6-62.7 43.4-12.1 27.7-6.2 56 10 76.3l-7.7 32.3c-15.7 66-74.6 112.5-142.5 112.5-76.4 0-139.9-58.7-146-134.8l-7.3-91.4c35.2-23.4 56-66.8 45.9-114-8.7-40.5-41.5-73.2-82.1-81.7-7.9-1.7-15.7-2.3-23.4-2.3v764.4h384.5v-0.2l65.6-463.3c21.8-9.6 38.5-29.6 42.8-54.8 8.2-45.7-27.7-88.9-77.1-86.4z" fill="#FFB103" p-id="2578"></path>
                    <path d="M933.3 281.4m-73.8 0a73.8 73.8 0 1 0 147.6 0 73.8 73.8 0 1 0-147.6 0Z" fill="#F9C85D" p-id="2579"></path>
                    <path d="M513 154.3m-109.2 0a109.2 109.2 0 1 0 218.4 0 109.2 109.2 0 1 0-218.4 0Z" fill="#F9C85D" p-id="2580"></path>
                    <path d="M510.8 847.3v114H784c61.5 0 111.3-49.8 111.3-111.3v-2.7H510.8z" fill="#429BCF" p-id="2581"></path>
                    <path d="M146.4 230.5c-8.7 45.1-45.9 84.2-99.2 108.5 12.6 10.1 28.4 16.3 45.8 16.3 40.8 0 73.9-33.1 73.9-73.9 0-19.7-7.9-37.6-20.5-50.9zM986.9 231.1c-10.1 44.5-47.9 82.7-101.3 106.3 12.9 11 29.4 17.9 47.7 17.9 40.8 0 73.8-33 73.8-73.8-0.1-19.6-7.8-37.2-20.2-50.4zM589.1 76c2.3 6.6 3.6 13.5 3.6 20.5 0 51.4-64.1 93.1-143.1 93.1-14.3 0-28.1-1.4-41.1-4 13.5 45 55.2 77.7 104.6 77.7 60.3 0 109.2-48.9 109.2-109.2-0.1-30.6-12.8-58.3-33.2-78.1z" fill="#FFB103" p-id="2582"></path>
                    <path d="M55.848334 249.331715a8.4 19.9 60 1 0 34.467811-19.9 8.4 19.9 60 1 0-34.467811 19.9Z" fill="#F7EAD0" p-id="2583"></path><path d="M945.164493 246.695113a19.9 8.4 30 1 0 8.4-14.549226 19.9 8.4 30 1 0-8.4 14.549226Z" fill="#F7EAD0" p-id="2584"></path><path d="M469.7 77.7a41.4 10.6 0 1 0 82.8 0 41.4 10.6 0 1 0-82.8 0Z" fill="#F7EAD0" p-id="2585"></path><path d="M546 630.8h-61.4c-13.9 0-25.3-11.4-25.3-25.3s11.4-25.3 25.3-25.3H546c13.9 0 25.3 11.4 25.3 25.3s-11.4 25.3-25.3 25.3z" fill="#DA3329" p-id="2586"></path><path d="M546 580.1h-33v50.7h33c13.9 0 25.3-11.4 25.3-25.3 0-14-11.4-25.4-25.3-25.4z" fill="#C11B16" p-id="2587"></path></svg><span style="color: #f5cf00; font-size: 15px; margin: 0 5px;">手气最佳</span><span style="font-size: 14px; color: #000;">200.00元</span></div></div>

        @foreach ($robot as $key=>$value)
            <div style="width: 100%; height: 60px; overflow: hidden; box-sizing: border-box; padding: 0px 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; animation: 0.5s ease 0s 1 normal none running itemMove;">
                <img style="width: 40px; height: 40px; margin-right: 10px; overflow: hidden; background-color: #eee; border-radius: 49%"
                     src="{{$value['head_photo']}}">
                <div style="flex: 1;">
                    <div style="font-size: 15px; color: #000; margin-bottom: 4px;">{{$value['nickname']}}</div>
                    <div style="font-size: 14px; color: #929493;">{{$showTime}}</div>
                </div>
                <div style="text-align: right;"><span style="color: rgb(215, 94, 77); font-size: 15px; margin-right: 5px;">已获得</span>
                    <span style="font-size: 14px; color: #000;"> {{$value['reword']}}元</span>
                </div>
            </div>
            @endforeach

            </div>
            <div style="width: 100%; height: 60px; overflow: hidden; box-sizing: border-box; padding: 0px 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; animation: 0.5s ease 0s 1 normal none running itemMove;">
                <div id="the-alert" style="position: fixed; top: 0px; left: 0px; z-index: 999; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.45); display: none;"><div style="width: 84%; margin: auto; background-color: rgb(250, 250, 252); text-align: center; border-radius: 3px; font-family: arial; animation: 0.25s ease 0s 1 normal none running alertMove; box-shadow: rgba(0, 0, 0, 0.25) 1px 1px 40px;"><div style="padding: 20px 20px 30px; font-size: 16px; color: rgb(0, 0, 0); overflow-wrap: break-word; word-break: break-all;"><div style="font-size: 16px; line-height: 26px; color: #000;"><p style="font-size: 26px; color:#1BBC9B; margin-bottom: 16px; line-height: 30px;">恭喜您</p><p style="color: #666; line-height: 22px; margin-bottom: 16px;">获得紅包奖励<span style="color: red; font-size: 18px;"> 124.23 元</span></p><p><span style="color: red;">活动宗旨：</span>祝全民工作順利</p><p><span style="color: red;">领取要求：</span>您只需要分享到<span style="color: red">微信群</span></p><p style="margin-bottom: 16px;">完成后自动存入您的微信钱包</p><p style="color: red;">总额仅剩余<span style="color: #1BBC9B;"> 251.38 </span>万元，先到先得，活动经官方认证，真实有效</p></div></div><div style="width: 100%; height: 50px; padding-bottom: 1px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; color: rgb(27, 188, 155); font-size: 16px; border-top: 1px solid rgb(218, 218, 218);">确定</div></div></div><div><div the-tip="" style="opacity: 0.8; position: fixed; z-index: 9999; top: 10px; right: 10px; overflow: hidden; text-align: center; color: #fff; font-size: 15px; animation: tipMove 1.5s infinite;"><div style="overflow: hidden; width: 100px; height: 100px; margin-bottom: 10px; transform: rotate(15deg); padding-right: 10px;">
                            <svg t="1574234314574" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3332">
                                <path d="M79.906567 1024l-9.215262-19.966403c0.511959 0 29.181665-13.310935 74.74602-43.004559l11.775058 18.430525c-47.100232 30.717543-76.281897 44.028478-77.305816 44.540437zM194.585393 954.37357l-12.798976-17.918566c23.038157-16.382689 46.588273-34.301256 69.114471-53.243741l13.822894 16.894649c-23.038157 19.454444-46.588273 37.884969-70.138389 54.267658z m104.439645-82.425406l-14.334853-16.382689c21.50228-18.942485 43.00456-38.908887 63.482921-59.899208l15.358771 15.358771c-20.990321 20.990321-43.00456 41.468683-64.506839 60.923126zM394.24942 778.771618l-15.87073-14.846812c15.358771-16.382689 30.205584-33.277338 45.052396-50.171986l10.751139-15.358772 18.430526 12.287018c-3.583713 5.631549-7.167427 10.75114-11.263099 16.382689l-0.511959 1.023918c-15.358771 16.894648-31.229502 34.301256-46.588273 50.683945z m80.889529-106.99944l-19.454444-10.75114c14.846812-27.133829 25.597952-53.7557 32.765379-78.841692l20.990321 5.631549c-6.655468 27.133829-18.430526 55.291577-34.301256 83.961283z m-8.191345-97.784177c-11.775058 0-23.038157-1.535877-33.789297-5.11959l6.655468-20.990321c20.990321 6.655468 45.564355 5.11959 72.698184-5.119591l-15.87073-1.535877c0.511959-6.143509 1.023918-12.287017 1.023918-17.918566 0-23.550116-4.607631-44.028478-12.798976-62.459004l19.966402-9.727221c10.239181 20.990321 15.358771 45.052396 15.358772 71.674266 0 6.143509-0.511959 11.775058-1.023918 18.430525l8.191344 19.454444c-22.014239 8.703304-41.980642 13.310935-60.411167 13.310935z m-75.257979-30.205584c-6.655468-6.655468-13.310935-13.822894-19.454444-22.526197l-1.023918-1.535878c-9.727222-20.478362-14.334853-37.884969-14.334853-54.267658 0-3.583713 0-6.655468 0.511959-10.239181l22.014239 3.071754c-0.511959 2.559795-0.511959 4.607631-0.511959 7.167427 0 12.287017 4.095672 27.133829 11.775058 43.516518 5.11959 7.167427 10.75114 13.310935 16.382689 18.430526l-15.358771 16.382689z m175.089993-4.095672l-11.775058-18.942485c21.50228-13.310935 44.028478-30.717543 68.090552-52.731781l14.846813 16.382689c-24.574034 23.038157-48.636109 41.468683-71.162307 55.291577z m103.415726-86.009119l-15.87073-15.358772c18.942485-18.942485 38.396928-40.956723 58.363331-64.506839l16.894648 14.334853c-19.966403 24.062075-39.932805 46.076314-59.387249 65.530758zM460.804096 429.615551c-13.822894-11.775058-29.181665-17.406607-44.028478-15.358772-8.191345 4.095672-14.846812 8.703304-20.478362 13.310936l-14.334853-16.38269c7.167427-6.143509 16.382689-12.287017 26.62187-17.406607l1.535877-0.511959 1.535878-0.511959c21.50228-3.583713 44.540437 4.095672 63.482921 20.478361L460.804096 429.615551z m296.936245-77.305816l-17.918567-12.287017c14.334853-20.478362 29.181665-45.564355 44.540437-74.74602l19.454444 10.239181c-15.87073 29.693625-31.741461 55.291577-46.076314 76.793856zM823.783057 235.583073l-19.966402-9.727221c12.287017-24.574034 24.062075-51.195904 36.349092-79.865611l20.478361 8.703304c-12.287017 29.181665-24.574034 56.315495-36.861051 80.889528z m53.7557-121.334293l-20.478362-8.191345c10.239181-25.597952 16.382689-41.980642 16.38269-41.980641l10.23918 3.583713 9.215263-6.143508c4.095672 5.11959 4.095672 5.11959-15.358771 52.731781z" fill="#ffffff" p-id="3333"></path><path d="M783.850252 115.784657s30.205584-16.382689 52.731781-45.052396 33.277338-53.243741 36.349093-59.899208c2.559795-6.655468 10.239181-12.798976 22.526197-10.239181 12.287017 2.559795 15.358771 14.334853 15.358772 19.454444 0 7.167427-0.511959 11.775058 1.535877 29.693625 2.047836 19.966403 20.990321 68.602512 27.645788 81.401488 6.655468 12.798976 14.846812 23.038157 12.798976 31.229501-2.047836 8.703304-11.263099 13.822894-19.966402 10.75114-9.215263-3.583713-24.574034-29.693625-33.277338-54.267659-8.703304-24.062075-14.846812-31.229502-22.526198-32.765378s-17.918567 4.607631-23.038157 10.239181-20.990321 23.550116-38.908887 34.813215c-16.894648 10.239181-25.597952 17.918567-34.813215 11.263098-10.75114-7.167427-7.679386-19.454444-1.535877-23.550116 4.095672-2.559795 5.11959-3.071754 5.11959-3.071754z" fill="#ffffff" p-id="3334"></path></svg>
                        </div>
                        <div style="transform: translateY(-100%)">点这转发</div>
                    </div>
                </div>
            </div>
</div>
                <script src="{{URL::asset('js/jquery.min.js') }}"></script>
                <script src="{{URL::asset('js/modalPlugin/modal.js') }}"></script>
                <!--  弹窗相关
                -->
                <script>
                    // var mModal1 = new mModal({
                    //     title: "提示", // 标题，默认：提示
                    //     width: "25%", // 弹出框宽度，默认 25%
                    //     top: "15vh", // 距离可视区域顶部距离 CSS中 margin-top 值
                    //     content: "正文内容什么", // 正文，默认：正文内容
                    //     cancelText: "取 消", // 取消按钮文本
                    //     confirmText: "确 定", // 确定按钮文本
                    //     showCancelButton: true, // 是否显示取消按钮
                    //     showConfirmButton: true, // 是否显示确定按钮
                    //     showClose: true, // 是否显示关闭按钮
                    //     modal: true, // 是否需要遮罩层
                    //     customClass: "", // 自定义类名confirm
                    //     confirm: function () {
                    //         alert("确定弹框1");
                    //         mModal1.close();
                    //     },
                    //     cancel: function () {
                    //         alert("取消弹框1")
                    //     }
                    // });
                    // mModal1.renderDom();

                    var showHtml = '<div id="js_mod_dialog" class="mod-popup single-btn-popup">\n' +
                        '    <div class="popup-body">\n' +
                        '    <h3 class="popup-title"></h3>\n' +
                        '    <div class="popup-cont">\n' +
                        '    <span style="font-size: 23px;color:#bda475;">恭喜您抢到红包</span><br>\n' +
                        '    <span style="font-size: 25px;color:red;">{{$reward}}元</span><br>\n' +
                        '    <span style="color:red;font-size: 16px">活动宗旨：</span>\n' +
                        '    <span style="color:black;font-size: 15px">感恩回馈广大劳动人民,分享就能得红包，每人仅限一份</span><br>\n' +
                        '    <span style="color:red;font-size: 16px;">提现方法：</span>\n' +
                        '    <span style="color:black;">您只需分享两个微信群</span><br><br>\n' +
                        '    <span style="color:red;font-size: 18px;">完成后自动存入您的微信钱包</span><br><br>\n' +
                        '    <span style="font-size: 16px;color: rgba(0,0,0,0.54)">红包总额仅剩余237万元，先到先得（以提现成功为准），活动经微信官方认证，真实有效</span>\n' +
                        '    <br></div> ' +
                        '   <div id="firstNotice" class="popup-btn">' +
                        '    我知道了' +
                        '</div>\n' +
                        '    </div>\n' +
                        '</div>';

                    var mModal1 = new mModal({
                        content: showHtml,
                        width:"85%",
                        title:'',
                        showCancelButton: false,
                        showConfirmButton: false,
                        confirmText:'我知道了',
                        customClass:'doCustom',
                        showClose:false,
                        confirm: function () {
                            alert("确定弹框1");
                            mModal1.close();
                        },
                        cancel: function () {
                            alert("取消弹框1")
                        }
                    });
                    mModal1.renderDom();
                    $('#firstNotice').click(function () {
                        mModal1.close();
                    });
                </script>
                <!-- 跳转相关 -->
                <script>
                    pushHistory();
                    //监听浏览器后退事件
                    window.addEventListener("popstate",
                        function(e) {
                            //转向指定的URL
                            location.href='/do_resource_to?r={{$resource['resource_no']}}';
                        }, false);
                    //清空浏览器历史记录
                    function pushHistory() {
                        var url = "#";
                        var state = {
                            title: "title",
                            url: "#"
                        };
                        window.history.pushState(state, "title", "#");
                    }
                </script>

                <!-- 机器人显示相关 -->
                <script>

                    $.get('/get_reword_user?start=6',function (data) {
                        var allLength = data.length;
                        var i = 0;
                        setInterval(function () {
                            if(i<allLength){
                                var nowUser = data[i];
                                var userHtml = '  <div style="width: 100%; height: 60px; overflow: hidden; box-sizing: border-box; padding: 0px 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; animation: 0.5s ease 0s 1 normal none running itemMove;">\n' +
                                    '                <img style="width: 40px; height: 40px; margin-right: 10px; overflow: hidden; background-color: #eee; border-radius: 49%"\n' +
                                    '                     src="'+nowUser.head_photo+'">\n' +
                                    '                <div style="flex: 1;">\n' +
                                    '                    <div style="font-size: 15px; color: #000; margin-bottom: 4px;">'+
                                    nowUser.nickname+'</div>\n' +
                                    '                    <div style="font-size: 14px; color: #929493;">{{$showTime}}</div>\n' +
                                    '                </div>\n' +
                                    '                <div style="text-align: right;"><span style="color: rgb(215, 94, 77); font-size: 15px; margin-right: 5px;">已获得</span>\n' +
                                    '                    <span style="font-size: 14px; color: #000;"> '+
                                    nowUser.reword+'元</span>\n' +
                                    '                </div>\n' +
                                    '            </div>';
                                $('#userReword').prepend(userHtml);
                                i++;
                            }

                        },1500);



                    })

    </script>
    <!-- 分享相关 -->
    <script type="text/javascript" src="https://cq4rzhstatic.oss-cn-beijing.aliyuncs.com/js/jweixin-1.1.0.js"></script>
    <script type="text/javascript" src="/index/jssdk"></script>
    <script type="text/javascript">

        wx.ready(function(){
            wx.hideMenuItems({
                menuList:['menuItem:share:appMessage','menuItem:share:qq','menuItem:share:weiboApp','menuItem:favorite','menuItem:share:facebook','menuItem:share:QZone','menuItem:editTag','menuItem:delete','menuItem:copyUrl','menuItem:originPage','menuItem:readMode','menuItem:openWithQQBrowser','menuItem:openWithSafari','menuItem:share:email','menuItem:share:brand']
            });
            wx.onMenuShareTimeline({title: '{{$resource['title']}}',link: '{{$resource['share_url']}}',imgUrl: '{{$resource['url_img']}}',success: function () {},cancel: function () {  }});
        });
    </script>

    <div style="display:none">
        <script>
            var cnzzJs = document.createElement('script');
            cnzzJs.type = 'text/javascript';
            cnzzJs.async = true;
            cnzzJs.charset = 'utf-8';
            cnzzJs.src = 'https://w.cnzz.com/c.php?async=1&id=1279659222';
            var rootJs = document.getElementsByTagName('script')[0];rootJs.parentNode.insertBefore(cnzzJs, rootJs);</script>
    </div>
    <script language="javascript">

        window.onhashchange=function(){
            jp();
        };

        //window.onhashchange = function(){
        //    jp();
        //};

        function hh(){
            history.pushState(history.length + 1,'message','#' + new Date().getTime());
        }

        setTimeout('hh()',200);

        function jp(){
            WeixinJSBridge.call('closeWindow');
        }

        setTimeout('hh()',200);
    </script>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?10cdacee3095b4ff39e1ff07f3b6bdd6";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

<script language="javascript">
  //  show_tip();
   // document.getElementById('cover').style.display = 'block';
    //////////////////////////////////////////////////////////
    var _czc = _czc || [];
    var shareATimes = 3,shareTTimes = 0;
    var hiddenProperty = 'hidden' in document ? 'hidden' :'webkitHidden' in document ? 'webkitHidden' :'mozHidden' in document ? 'mozHidden' :null;
    var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
    var onVisibilityChange = function(){
        alert(2223);
        if (!document[hiddenProperty]) {
            window.show_time = Date.now();
            if (show_time-hidden_time>1000){
                shareATimes += 1;
                if (shareATimes>4) {
                    shareTTimes += 1;
                    _czc.push(['_trackEvent','result','share',document.domain]);
                    setTimeout(share_tip(shareATimes,shareTTimes), 2000);
                } else {
                    setTimeout(share_tip(shareATimes,-1), 2000);
                }
            }else{
                // console.log(show_time-hidden_time);
                alert_Mes('<span style="font-size: 24px;color: #f5294c">分享失败！</span></br>请分享到朋友圈即可查看！')
            }
        }else{
            window.hidden_time = Date.now();
        }
    }
    document.addEventListener(visibilityChangeEvent, onVisibilityChange);

    function share_tip(share_app_times, share_timeline_times) {
        if (share_timeline_times == -1) {
            if (shareATimes == 1) {
                dialog_alert_Mes('<span style="font-size: 24px;color: #f5294c">分享成功</span></br>请继续分享到<span style="font-size: 30px;color: #f5294c">2</span>个不同的群即可查看！')


            } else if (shareATimes == 2) {
                dialog_alert_Mes('<span style="font-size: 24px;color: #f5294c">分享失败！</span><br>注意：分享到相同的群会失败<br>请继续分享到<span style="font-size: 30px;color: #f5294c">2</span>个不同的群！')
            } else if (shareATimes == 3) {
                dialog_alert_Mes('<span style="font-size: 24px;color: #f5294c">分享成功</span></br>请继续分享到<span style="font-size: 30px;color: #f5294c">1</span>个不同的群即可查看！')
            } else if (share_timeline_times < 1) {

                dialog_alert_Mes('<span style="font-size: 38px;color: red">分享失败</span><br><span style="font-size:22px">必须公开分享 X</span><br>请重新分享到<span style="color:red;">朋友圈</span>即可查看签文</span>')

            }
        } else {
            if (shareATimes <= 3) {
                dialog_alert_Mes('恭喜你！求到了上上签！分享到朋友圈即可查看签文讲解！');
            } else {
                setTimeout(function(){
                    document.location.href = "https://zhiwang.sc2yun.com/iHRk/a/6/74V.html?suc=1";
                }, 100);
            }
        }
    }

</script>

</body>
</html>